package com.sq.partner.manager.service.impl;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import com.sq.partner.manager.dao.TradConfigDao;
import com.sq.partner.manager.mybatis.model.TradConfig;
import com.sq.partner.manager.service.TradConfigService;
import com.sq.partner.manager.util.LogUtil;

@Service
public class TradConfigServiceImpl implements TradConfigService {
	private static Logger logger = LogUtil.getLog(TradConfigServiceImpl.class);
	
	@Resource
	TradConfigDao tradConfigDao;
	
	
	@Override
	public boolean insertTradConfigNotNull(TradConfig config)throws Exception {
		return tradConfigDao.insertTradConfigNotNull(config);
		 
	}
	
	@Override
	public TradConfig selectUnionMessageConfig(Map<String, String> map) throws Exception {
		return tradConfigDao.selectUnionMessageConfig(map);
	}

	@Override
	public boolean updateUnionMessageConfig(TradConfig config) throws Exception {
		return tradConfigDao.updateUnionMessageConfig(config);
	}

	@Override
	public List<String> selectCoreProdCodeByDptCde(Map<String,String> dptCdeAndType) throws SQLException {
		return tradConfigDao.selectCoreProdCodeByDptCde(dptCdeAndType);
	}


}
